import request from "@/router/axios";
import { baseUrl } from "@/config/env";

//添加旷课
export function addAbsentClass(data) {
  return request({
    url: baseUrl + "/pc/absent-class",
    method: "post",
    data
  });
}

//查询旷课
export function getAbsentClass(data) {
  return request({
    url: baseUrl + "/pc/absent-class",
    method: "get",
    params: data
  });
}

//删除旷课
export function deleteAbsentClass(data) {
  return request({
    url: baseUrl + "/pc/absent-class",
    method: "delete",
    data
  });
}

//更新旷课
export function updateAbsentClass(data) {
  return request({
    url: baseUrl + "/pc/absent-class",
    method: "put",
    data
  });
}

//导入旷课
export function importAbsentClass(data) {
  return request({
    url: baseUrl + "/pc/absent-class",
    method: "post",
    data
  });
}
